<?php if (isset($errors))	{ ?>
<div class="error-message">
	<ul>
		<?php 
		foreach($errors as $i => $e)	{
			print "<li>$e</li>";
		}?>
	</ul>
</div>
<?php } ?>